<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../../../js/easyui/themes/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="../../../js/easyui/themes/icon.css">
		<script type="text/javascript" src="../../../js/jquery-1.11.1.js"></script>
		<script type="text/javascript" src="../../../js/easyui/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="../../../js/easyui/locale/easyui-lang-zh_CN.js"></script>
	</head>

	<body>

		<div id="win" class="easyui-window" title="Login" style="width:300px;height:180px;">
			<form style="padding:10px 20px 10px 40px;">
				<p>Name: <input type="text"></p>
				<p>Pass: <input type="password"></p>
				<div style="padding:5px;text-align:center;">
					<a href="#" class="easyui-linkbutton" icon="icon-ok">Ok</a>
					<a href="#" class="easyui-linkbutton" icon="icon-cancel">Cancel</a>
				</div>
			</form>
		</div>
		<div id="win" class="easyui-window" title="My Window" closed="true" modal="true" style="width:300px;height:100px;padding:5px;">
			<table id="skuTable" class="easyui-datagrid">
				<thead>
					<tr>
						<th field="sku" width="50">SKU</th>
						<th field="productName" width="50">商品名称</th>
						<th field="searialNo" width="50">序列号</th>
					</tr>
				</thead>
				<tbody id="skuTbody">

				</tbody>
			</table>
		</div>

		<div id="win2" class="easyui-window" title="My Window2" closed="true" modal="true" style="width:300px;height:100px;padding:5px;">
			<table id="snTable" class="easyui-datagrid">
				<thead>
					<tr>
						<th field="sku" width="50">sn</th>
						<th field="productName" width="50">商品</th>
					</tr>
				</thead>
				<tbody id="snTbody">

				</tbody>
			</table>
		</div>

		<input type="button" onclick="showD()" />
		<script>
			$(document).ready(function() {
				$(document).ready(function() {

					$('#win').window({
						onClose: function() {
							$(this).window("destroy");
						}
					});

				});

			});

			function showD() {
				var _html = "<tr>" +
					"<td>ZLIBE48001</td>" +
					"<td>准全新 ThinkPad E480 14英寸笔记本电脑(i5-8250U/8G/1T/RX550 2G独显/1366*768/1年保修)</td>" +
					"<td><span onclick='show2()'>1</span></td>" +
					"</tr>"
				$("#skuTbody").html(_html)
				//$('#win').window('open');
				$('#win').window("open");
				$.parser.parse($("#skuTable").parent());
			}

			function show2() {
				var _html = "<tr>" +
					"<td>222</td>" +
					"<td>111</td>" +
					"</tr>"
				$("#snTbody").html(_html)
				$('#win2').window('open');
				$.parser.parse($("#snTable").parent());
			}
		</script>
	</body>

</html>